package com.quick.controller;

import com.quick.domain.Order;
import com.quick.service.OrderService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author jojo.wang
 * @Date 2019-05-24 22:00
 * @Version 1.0
 **/
@RestController
@RequestMapping("/order")
public class TestController {
    @Resource
    private OrderService orderService;
    @RequestMapping("/test")
    public String test(String type) throws Exception{
        Order order = new Order();
        order.setType(type);
        String a = orderService.haveOrderType(order);
        return a;
    }
}
